package execute;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

import com.css.bjdt_report.executive.report.ReportRequest;

public class RequestFactory {
	
	public static ReportRequest create() throws Exception{
		SimpleDateFormat format= new SimpleDateFormat("yyyy/MM/dd");
		ReportRequest request = new ReportRequest();
		List<String> dzzIds = new ArrayList<String>();
		dzzIds.add("12345678");
		List<String> templateIds = new ArrayList<String>();
		templateIds.add("56ea9c72f64d4850813ce61d7934a589");
//		request.setBatchId("6ddfd350ea954a7784df6e89cf892e09");
		request.setAnnualId("20150101123456");
		request.setStartTime(format.parse("2014/1/1"));
		request.setEndTime(format.parse("2014/12/31"));
		request.setReportDzzId("12345678");
		request.setReportDzzName("测试党委");
		request.setReportMan("测试人");
		request.setDzzIds(dzzIds);
		request.setTemplateIds(templateIds);
		return request;
	}
}
